import baseApi from './baseApi'

export default {
  login(parms) {
    return baseApi.postApi('/user/login', parms);
  },
  findUser(parms) {
    return baseApi.getApi('/user/find', parms);
  },
  getUser(id) {
    return baseApi.getUrlApi('/user/get', id);
  },
  deleteUser(ids) {
    return baseApi.getUrlApi('/user/deletes', ids);
  },
  recoveryUser(ids) {
    return baseApi.getUrlApi('/user/recoverys', ids);
  },
  saveUser(jsonParms) {
    return baseApi.postApi('/user/save', jsonParms);
  },
  setRole(jsonParms){
    return baseApi.postApi('/user/setRole', jsonParms);
  },
  me(){
  	return baseApi.getApi('/user/me');
  }
}